package com.zaimokuza.cn.entity.constants;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 文件相关常量
 *
 * @author zaimokuza
 */
@Component
public class FileConstant {

    /**
     * 图片虚拟文件夹路径
     */
    public static String IMAGE_VIRTUAL_FOLDER = "/image/";
    /**
     * 图片虚拟文件夹路径
     */
    public static String AVATAR_EXPAND_FOLDER = "/avatar/";
    /**
     * 默认头像
     */
    public static String DEFAULT_AVATAR = "/image/avatar/default.jpg";
    /**
     * 图片实际文件夹路径
     */
    public static String IMAGE_ACTUAL_FOLDER;

    /* 赋值 */

    @Value("${image.actual.folder}")
    public void setImageActualFolder(String imageActualFolder) {
        IMAGE_ACTUAL_FOLDER = imageActualFolder;
    }

}
